package com.qc.bug.services.user;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qc.bug.dao.UserInfoMapper;
import com.qc.bug.pojo.UserInfo;
import com.qc.bug.util.MD5;

@Service
public class UserInfoServicesImpl implements UserInfoServices {

	@Autowired
	private UserInfoMapper usreInfomMapper;

	@Override
	public UserInfo findUserLogin(String phone, String pwd) {

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("phone", phone);
		map.put("pwd", MD5.getMd5(pwd));

		return usreInfomMapper.findUserLogin(map);
	}

}
